home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- vectorser.device/VSCMD_SETCTRLLINES
- vectorser.device/VSCMD_SETCTRLLINES vectorser.device/VSCMD_SETCTRLLINES
-
- NAME
- VSCMD_SetCtrlLines -- set the I/O Control Lines for a serial line.
-
- FUNCTION
- This command allows you to control the status of the I/O lines for a
- serial port. You can set and reset both I/O Lines (DTR and RTS) for
- each port independently. This allows e.g. BBS programs to drop DTR
- without having to rely to the CloseDevice()/OpenDevice() sequence.
-
- If you set a control bit in the io_Offset parameter, then the value
- of the corresponding control bit in the io_Length parameter controls
- the level of the I/O line.
-
- io_Offset Bit == 0 ---> io_Length Bit does not affect control line.
- io_Offset Bit == 1 ---> io_Length Bit == 1 -> Set Control Line
- io_Offset Bit == 1 ---> io_Length Bit == 0 -> Reset Control Line
-
- IO REQUEST
- io_Message mn_ReplyPort initialized
- io_Device preset by OpenDevice
- io_Unit preset by OpenDevice
- io_Command VSCMD_SETCTRLLINES (10)
- io_Offset Bitmask for control lines
- io_Length Bitmask for setting and resetting the line
-
- RESULT
- none
-
- NOTES
- Setting and resetting RTS is not recommended for normal operation of
- the vectorser.device, but it could be useful if you connect some special
- hardware to a serial port (e.g. digitizer, clocks or dongle devices).
- In such a case you can use the DTR and RTS lines as general purpose
- output ports (open the device with IOF_7WIRE reset) and the CTS, CD and
- DSR lines as general purpose input lines which can be read with the
- SERCMD_QUERY command.
-
- This command is implemented in a way, which is (according to some
- articles, which I grabbed from the UseNet) 'ADSG' compatible. This
- means, that this command was first implemented in the driver for an
- I/O board from ADSG. I never had access to a documentation for this
- command, only to code which is supposed to use this driver.
-
- BUGS
- Don't know of any. As I told you, I never had access to *real* ADSG
- documentation.
-
- SEE ALSO
- serial.device/SDCMD_QUERY, devices/vectorser.h
-
-